﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using AjaxControlFramework;

namespace AjaxControlFramework.Docs.Examples.ScriptManager
{
    public partial class ProgrammaticExample1 : UserControl
    {
        //------// Properties \\--------------------------------------------\\

        //------\\ Properties //--------------------------------------------//



        //------// Methods \\-----------------------------------------------\\
        protected void Page_Load(object sender, EventArgs e)
        {

        }



        #region "Event Handlers"

        public void RegisterContolScripts()
        {
            EmbeddedScriptReference frameworkScriptReference = new EmbeddedScriptReference("AjaxControl", "AjaxControlFramework.AjaxControl.release.js", "AjaxControl");
            frameworkScriptReference.Dependencies.Add("System.Web.WebForms");

            InternalScriptManager.Instance.RegisterScript(frameworkScriptReference, ScriptRenderLocation.Body);
        }

        #endregion
        //------\\ Methods //-----------------------------------------------//
    }
}